package cn.bonoon.kernel.support.models;

/**
 * <pre>
 * 这个类用于combobox下拉列表的界面控件
 * 
 * 当用于自动转值的时候，默认情况下是{@link CommonItem#id}对应数据库实体的id的字段，
 * {@link CommonItem#text}对应数据库实体的name字段，如果该数据库实体没有name字段
 * 则需要通过{@link cn.bonoon.kernel.web.annotations.AutoDataResultFields AutoDataResultFields}来指定对应的读值格式
 * </pre>
 * @author jackson
 *
 */
public class Item extends CommonItem {
	
	private Boolean selected;
	
	public Item() { }
	
//	public Item(Object id, String text, Boolean selected) {
//		super(id.toString(), text);
//		this.selected = selected;
//	}
	
	public Item(Object id, String text) {
		super(id.toString(), text);
	}
	
	public Item(Object id, String text, String ext, boolean pre) {
		super(id.toString(), text, ext, pre);
	}
	
	public Boolean getSelected() {
		return selected;
	}
	
	public void setSelected(Boolean selected) {
		this.selected = selected;
	}
}
